package com.company.service;

public class ThreadA extends Thread {
    @Override
    public void run() {
        int i = 1;
        while (i <= 100){
            try {
                System.out.println(i);
                i++;
                Thread.sleep(2L);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }

        }
    }
}
